import http from "@/service/http"

 const API_POST_LOGIN = {
    title: '登录',
    method: 'POST',
    path: '/users/login',
}

// req
export interface IReqLogin {
    mobile:number;
    password:string
}


// res
export interface IResLogin {}


export async function loginService(param:IReqLogin){

    return await http.post({
        url:API_POST_LOGIN.path,
        data:{
          mobile:param.mobile,
          password:param.password
        }
      })
      

} 


